﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INSTA.AI97.Samples.Polymorphisme
{
    abstract class Article : IPriceable
    {
        public abstract string GetSize();


        public abstract double GetPrice();
    }


    class TShirt : Article
    {
        public override string GetSize()
        {
            return "XXL";
        }

        public override double GetPrice()
        {
            return 12;
        }
    }


    class Shoes : Article
    {
        public override string GetSize()
        {
            return "XL";
        }

        public override double GetPrice()
        {
            return 120;
        }
    }


    class Skirt : Article
    {
        public override string GetSize()
        {
            return "S";
        }

        public override double GetPrice()
        {
            return 600;
        }
    }



}
